import request from '@/utils/request'

/**
 * @param {预案管理-列表查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planManagement/getPlanManagementList
 * @method {post}
 * @params {int} pageIndex  当前页索引
 * @params {int} pageSize  每页条数
 * @params {string} title  预案名称
 * 
 */
export function getPlanManagementList(data) {
  return request({
    url: '/zy-api/api/planManagement/getPlanManagementList',
    method: 'post',
    data: data
  })
};

/**
 * @param {预案管理-ID查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planManagement/getPlanManagementId
 * @method {post}
 * @params {string} id  id
 * 
 */
 export function getPlanManagementId(data) {
  return request({
    url: '/zy-api/api/planManagement/getPlanManagementId',
    method: 'post',
    data: data
  })
};

/**
 * @param {预案管理-新增} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planManagement/addPlanManagement
 * @method {post}
 * @params {string} title  预案名称
 * @params {string} purpose  编制目的
 * @params {string} numbers  文号
 * @params {string} approvalunit  批准单位
 * @params {string} developunit  编制单位
 * @params {string} developdate  	编制时间
 * @params {string} summary  摘要
 * @params {string} url  	附件路径
 * 
 */
 export function addPlanManagement(data) {
  return request({
    url: '/zy-api/api/planManagement/addPlanManagement',
    method: 'post',
    data: data
  })
};

/**
 * @param {预案管理-修改} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planManagement/updPlanManagement
 * @method {post}
 * @params {string} id  id
 * @params {string} title  预案名称
 * @params {string} purpose  编制目的
 * @params {string} numbers  文号
 * @params {string} approvalunit  批准单位
 * @params {string} developunit  编制单位
 * @params {string} developdate  	编制时间
 * @params {string} summary  摘要
 * @params {string} url  	附件路径
 * 
 */
 export function updPlanManagement(data) {
  return request({
    url: '/zy-api/api/planManagement/updPlanManagement',
    method: 'post',
    data: data
  })
};

/**
 * @param {预案管理-物理删除} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planManagement/delPlanManagement
 * @method {post}
 * @params {string} id  id
 * 
 */
 export function delPlanManagement(data) {
  return request({
    url: '/zy-api/api/planManagement/delPlanManagement',
    method: 'post',
    data: data
  })
};
